package com.ysu.his.entity.dispensary;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ysu.his.base.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 发药记录实体类
 */
@Data
public class DispenseRecord extends BaseEntity
{
    //唯一标识
    private Long id;

    //处方id
    private Long prescriptionId;

    //患者id
    private Long patientId;

    //药师姓名
    private String pharmacist;

    //发药时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date dispenseTime;

    //总金额
    private BigDecimal totalAmount;

    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
